package com.lizhi.yun.core.patient;/**
 * @program: hbsf_yun
 * @name MsbPatientController
 * @description:
 * @author: lizhi
 * @create: 2021-12-31 13:30
 */

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *@program: hbsf_yun
 *@name MsbPatientController
 *@description:
 *@author: lizhi
 *@create: 2021-12-31 13:30
 */
@RestController
@RequestMapping(value = "/api/sync/patient")
public class MsbPatientController {

    @Resource
    private MsbPatientHandler msbPatientHandler;

    @PostMapping(path = "/recv")
    public String recvPatient(@RequestBody String json){
        return msbPatientHandler.recvPatient(json);
    }

    @PostMapping(path = "/training")
    public String trainingPatient(@RequestBody String json){
        return msbPatientHandler.trainingPatient(json);
    }
}
